165f727703fa1d3bc2dac29c8599ec68d0d8d93e,portal-impl/src/com/liferay/portal/tools/sourceformatter/JSSourceProcessor.java,JSSourceProcessor,format,#String#,48
Before Change
processErrorMessage(fileName, "debugger " + fileName);
}
if (isAutoFix() && (newContent != null) &&
!content.equals(newContent)) {
fileUtil.write(file, newContent);
sourceFormatterHelper.printError(fileName, file);
}
After Change
sb.append("\n");
sb.append(match.substring(0, pos + 4));
newContent = StringUtil.replace(newContent, match, sb.toString());
}
if (newContent.endsWith("\n")) {
newContent = newContent.substring(0, newContent.length() - 1);
}
checkLanguageKeys(fileName, newContent, languageKeyPattern);
if (newContent.contains("debugger.")) {
processErrorMessage(fileName, "debugger " + fileName);
}
if (!content.equals(newContent)) {
if (isAutoFix()) {
fileUtil.write(file, newContent);
}
else {
processMismatch(file, content, newContent);
}
printError(fileName, file);